Temp graphql lambda authorizer#2
Open
benbenbenbenbenben wants to merge 67 commits intocurlybenltd:devfrom
Open
Temp graphql lambda authorizer#2benbenbenbenbenben wants to merge 67 commits intocurlybenltd:devfrom
benbenbenbenbenben wants to merge 67 commits intocurlybenltd:devfrom
Conversation
…uthorizer Category graphql/appsync lambda authorizer
* feat: add @auth base package with Access Control * feat: graphql auth v2 add schemaChanges, iam policy generation, and query/read resolvers * feat: graphql auth v2 add auth on mutation and subscription resolvers * feat(amplify-category-api): add global sandbox mode directive on schema generation (#8074) * feat(amplify-category-api): add global sandbox mode directive on schema generation * test(amplify-e2e-tests): add e2e tests for sandbox mode * test(amplify-category-api): add unit test for generating sandbox mode directive; rm unused method * feat(cli): add sandbox mode warning to amplify status (#8078) * feat(amplify-category-api): prompt api key creation on amplify push (#8124) * feat(amplify-category-api): prompt api key create when invalid with sandbox mode * test(amplify-category-api): add unit tests for provider utils * test(amplify-category-api): fix test for adding api key prompt * refactor(cli): refactor api key prompt * refactor(amplify-category-api): add api key with gql compiled * feat: @model conflict resolution * auth directive support for index, searchable, predictions, functions, and relational directives (#8146) * feat: add support for index and updated unit and e2e tests * feat: directive suport for functions, predictions, searchable, and relational * test: updated unit tests for updated auth on directives * @auth support for datastore and add has auth flag (#8168) * feat: @auth v2 on datastore and updated unit tests * feat: add hasAuthFlag * feat(graphql-model-transformer): set up transformer for sandbox mode directive (#8138) * feat(graphql-model-transformer): add sandbox mode support to model transformer * refactor(graphql-transformer-core): do not persist sandbox mode meta data * fix: add command to show access control and field auth evaluation in access control (#8174) * fix: admin ui app state check and auth transformer index resolver name (#8175) * fix: has auth typo and qref on field conditions for private rule (#8180) * fix(graphql-model-transformer): use hasAuth flag when sandbox mode is disabled (#8179) * fix: update hasMany to use join table name, sync config warning, updated unit test * fix: add empty payload for sandbox mode * fix: snapshot test for @searchable * fix: udpated snapshot for index and relation directives * fix: use same none datasource name as resolver manager * fix: iam resolver check and relational payload (#8234) * fix: add datastore query in config for auth (#8246) * fix: auth filter expression (#8248) * fix: update iam auth to include roles in before template (#8259) * chore: rebase and update auth dependencies * fix(graphql-model-transformer): iam role name does not exceed 64 characters * fix: add base e2e tests with auth fixes Co-authored-by: Danielle Adams <6271256+danielleadams@users.noreply.github.com> Co-authored-by: lazpavel <85319655+lazpavel@users.noreply.github.com>
…or sandbox mode (#3)
…oker plugin (#8274) * fix(amplify-provider-awscloudformation): invoke api function from invoker plugin * fix(graphql-index-transformer): update snapshots for tests * test(amplify-provider-awscloudformation): fix tests for sandbox helpers
…e from schema before transform (#8272)
* fix(amplify-category-geo): add pre-push hook to verify region support * fix(amplify-category-geo): remove test for unsupported region
- amplify-app@3.0.13-graphql-vnext-dev-preview.0 - amplify-category-analytics@2.21.22-graphql-vnext-dev-preview.0 - amplify-category-api@2.32.0-graphql-vnext-dev-preview.0 - amplify-category-auth@2.38.2-graphql-vnext-dev-preview.0 - amplify-category-function@2.35.0-graphql-vnext-dev-preview.0 - amplify-category-geo@1.0.1-graphql-vnext-dev-preview.0 - amplify-category-hosting@2.7.22-graphql-vnext-dev-preview.0 - amplify-category-interactions@2.6.6-graphql-vnext-dev-preview.0 - amplify-category-predictions@2.9.13-graphql-vnext-dev-preview.0 - amplify-category-storage@2.12.10-graphql-vnext-dev-preview.0 - amplify-category-xr@2.8.22-graphql-vnext-dev-preview.0 - amplify-cli-core@1.30.0-graphql-vnext-dev-preview.0 - @aws-amplify/cli@6.1.0-graphql-vnext-dev-preview.0 - amplify-console-hosting@1.9.13-graphql-vnext-dev-preview.0 - amplify-console-integration-tests@1.8.10-graphql-vnext-dev-preview.0 - amplify-container-hosting@1.3.24-graphql-vnext-dev-preview.0 - amplify-dotnet-function-template-provider@1.5.22-graphql-vnext-dev-preview.0 - amplify-dynamodb-simulator@1.19.13-graphql-vnext-dev-preview.0 - amplify-e2e-core@1.27.0-graphql-vnext-dev-preview.0 - amplify-e2e-tests@2.51.0-graphql-vnext-dev-preview.0 - amplify-frontend-ios@2.20.15-graphql-vnext-dev-preview.0 - amplify-frontend-javascript@2.24.2-graphql-vnext-dev-preview.0 - amplify-go-function-runtime-provider@1.9.5-graphql-vnext-dev-preview.0 - @aws-amplify/graphql-auth-transformer@0.2.0-graphql-vnext-dev-preview.0 - @aws-amplify/graphql-function-transformer@0.5.0-graphql-vnext-dev-preview.0 - @aws-amplify/graphql-http-transformer@0.5.4-graphql-vnext-dev-preview.0 - @aws-amplify/graphql-index-transformer@0.4.0-graphql-vnext-dev-preview.0 - @aws-amplify/graphql-model-transformer@0.7.0-graphql-vnext-dev-preview.0 - @aws-amplify/graphql-predictions-transformer@0.4.0-graphql-vnext-dev-preview.0 - @aws-amplify/graphql-relational-transformer@0.3.0-graphql-vnext-dev-preview.0 - @aws-amplify/graphql-searchable-transformer@0.7.0-graphql-vnext-dev-preview.0 - @aws-amplify/graphql-transformer-core@0.10.0-graphql-vnext-dev-preview.0 - @aws-amplify/graphql-transformer-interfaces@1.10.0-graphql-vnext-dev-preview.0 - amplify-headless-interface@1.11.0-graphql-vnext-dev-preview.0 - amplify-java-function-runtime-provider@1.8.15-graphql-vnext-dev-preview.0 - amplify-migration-tests@3.2.0-graphql-vnext-dev-preview.0 - amplify-nodejs-function-runtime-provider@1.6.12-graphql-vnext-dev-preview.0 - amplify-nodejs-function-template-provider@1.6.22-graphql-vnext-dev-preview.0 - amplify-prompts@1.2.0-graphql-vnext-dev-preview.0 - amplify-provider-awscloudformation@4.61.0-graphql-vnext-dev-preview.0 - amplify-python-function-runtime-provider@1.9.12-graphql-vnext-dev-preview.0 - amplify-util-headless-input@1.5.5-graphql-vnext-dev-preview.0 - amplify-util-import@1.5.13-graphql-vnext-dev-preview.0 - amplify-util-mock@3.34.6-graphql-vnext-dev-preview.0 - graphql-auth-transformer@6.25.0-graphql-vnext-dev-preview.0 - graphql-connection-transformer@4.21.23-graphql-vnext-dev-preview.0 - graphql-dynamodb-transformer@6.22.23-graphql-vnext-dev-preview.0 - graphql-elasticsearch-transformer@4.12.2-graphql-vnext-dev-preview.0 - graphql-function-transformer@2.5.22-graphql-vnext-dev-preview.0 - graphql-http-transformer@4.18.10-graphql-vnext-dev-preview.0 - graphql-key-transformer@2.23.23-graphql-vnext-dev-preview.0 - graphql-mapping-template@4.19.0-graphql-vnext-dev-preview.0 - graphql-predictions-transformer@2.5.22-graphql-vnext-dev-preview.0 - graphql-relational-schema-transformer@2.18.7-graphql-vnext-dev-preview.0 - graphql-transformer-common@4.19.10-graphql-vnext-dev-preview.0 - graphql-transformer-core@6.30.0-graphql-vnext-dev-preview.0 - graphql-transformers-e2e-tests@6.27.0-graphql-vnext-dev-preview.0 - graphql-versioned-transformer@4.17.23-graphql-vnext-dev-preview.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes
Issue #, if available
Description of how you validated changes
Checklist
yarn testpassesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.